From: Egor Ignatov Date: Thu, 23 Jan 2025 17:44:13 +0000 (+0300) Subject: fs/xfs: Handle root inode read failure in grub_xfs_mount X-Git-Tag: archive/raspbian/2.14-2+rpi1^2~9 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/%22mailto:kde%40ewsoftware.de//%22style.css/%22/%22http:/www.example.com/%22mailto:kde%40ewsoftware.de/%22style.css/%22?a=commitdiff_plain;h=ddc361d6b259b1868da1d9d8e230e8bda1d2b53d;p=grub2.git fs/xfs: Handle root inode read failure in grub_xfs_mount Signed-off-by: Egor Ignatov Gbp-Pq: Topic upstream Gbp-Pq: Name fs-xfs-Handle-root-inode-read-failure-in-grub_xfs_mount.patch --- diff --git a/grub-core/fs/xfs.c b/grub-core/fs/xfs.c index 0fb7d80..776efed 100644 --- a/grub-core/fs/xfs.c +++ b/grub-core/fs/xfs.c @@ -1111,6 +1111,8 @@ grub_xfs_mount (grub_disk_t disk) grub_cpu_to_be64(data->sblock.rootino)); grub_xfs_read_inode (data, data->diropen.ino, &data->diropen.inode); + if (grub_errno) + goto fail; return data; fail: